package lt.marsrutai.mobile.android.fragment;

import android.content.Context;
import android.os.Bundle;
import android.preference.PreferenceFragment;

public class AppPreferenceFragment extends PreferenceFragment {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        Context context = getActivity().getApplicationContext();
        int thePrefRes = context.getResources().getIdentifier(getArguments().getString("pref-resource"), "xml",
                context.getPackageName());

        addPreferencesFromResource(thePrefRes);
    }
}
